<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改推送任务')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-itemInfo-add">
        <input type="hidden" id="infoId" name="infoId" th:value="${costomId}" />

        <div class="form-group">
            <label class="col-sm-3 control-label">每日推送时间：</label>
            <div class="col-sm-4 row" id="timeRange">
                <input name="starttime" id="starttime" class="form-control" type="text" placeholder="开始时间" value="00:00:00" readonly>
            </div>
            <div class="col-sm-4">
                <input name="endtime" id="endtime" class="form-control" type="text" placeholder="结束时间" value="23:59:59" readonly>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "special/itemInfo";
    $("#form-itemInfo-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/batchEditSave", $('#form-itemInfo-add').serialize());
        }
    }

    layui.use('laydate', function(){
        var laydate = layui.laydate;

        laydate.render({
            elem: '#timeRange',
            type: 'time',
            range: ['#starttime', '#endtime']
        });
    });

</script>
</body>
</html>